From: Stefano Facchini Date: Wed, 23 Nov 2011 10:00:30 +0000 (+0100) Subject: workspaceThumbnail: avoid bouncing of the drop placeholder above the first workspace X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7100 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c63fe5ee240791156bf4693ac5b2a79725b4cc9b;p=gnome-shell.git workspaceThumbnail: avoid bouncing of the drop placeholder above the first workspace https://bugzilla.gnome.org/show_bug.cgi?id=664622 --- diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index 6b1dc80f9..52b2a747f 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -611,7 +611,11 @@ const ThumbnailsBox = new Lang.Class({ let thumbHeight = this._porthole.height * this._scale; let workspace = -1; - let firstThumbY = this._thumbnails[0].actor.y; + let firstThumbY; + if (this._dropPlaceholderPos == 0) + firstThumbY = this._dropPlaceholder.y; + else + firstThumbY = this._thumbnails[0].actor.y; for (let i = 0; i < this._thumbnails.length; i ++) { let targetBase = firstThumbY + (thumbHeight + spacing) * i;